package com.rp.configure.service.impl;

import com.rp.configure.entity.Alarm;
import com.rp.configure.entity.AlarmAll;
import com.rp.configure.mapper.AlarmAllMapper;
import com.rp.configure.mapper.AlarmMapper;
import com.rp.configure.service.AlarmAllService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author vicente
 * @since 2021-07-18
 */
@Service
public class AlarmAllServiceImpl extends ServiceImpl<AlarmAllMapper, AlarmAll> implements AlarmAllService {
    @Autowired
    AlarmAllMapper alarmAllMapper;
    @Override
    public List<Alarm> listBySubject(String subjectId) {
        return alarmAllMapper.listBySubject(subjectId);
    }
}
